//
//  SNUniteUrl.m
//  app
//
//  Created by 王少宁 on 15/6/8.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "SNUniteUrl.h"

@implementation SNUniteUrl

+ (SNUniteUrl *)shareUniteUrl
{
    AS_SINGLETON(SNUniteUrl, uniteUrl, {
        uniteUrl = [[SNUniteUrl alloc] init];
        [uniteUrl propertyVauled];
    })
    return uniteUrl;

//    SNUniteUrl * untieUrl = [[SNUniteUrl alloc] init];
//    [untieUrl propertyVauled];
//    return untieUrl;
}

- (void)propertyVauled
{
    _static_shoppageUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/shop/activitiesV2",kBaseUrl]];
    _static_categoryGoodsListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/actmores",kBaseUrl]];
    _static_detailpageUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/details", kBaseUrl]];//商品详情页
    _static_catogarypageUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/getMallProductKind", kBaseUrl]];//商品分类页面
    _static_temaiGoodsListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/getKindProduct", kBaseUrl]];//某种分类商品列表
    
#pragma mark - 商品列表BaseUrl get
    _sbgd_searchGoodsUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/searchs",kBaseUrl]];
    _sbgd_productCommentsUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/comments",kBaseUrl]];
    _sbgd_participationUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@activitymsg/getamlist",kBaseUrl]];
    _sbgd_allNotifyUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@community/notices_list",kBaseUrl]];
    
#pragma mark - 购物车BaseUrl post
    _sbpd_orderFormListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/getList",kBaseUrl]];
    _sbpd_orderFormDetailUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/orderDetail",kBaseUrl]];
    _sbpd_ZFBSignUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/pay/alipaysign",kBaseUrl]];
    _sbpd_WXSignUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/pay/weixinV3",kBaseUrl]];
    _sbpd_cancleOrderFormUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/cancelOrder",kBaseUrl]];
    _sbpd_returnGoodsRepetitiousUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/productReturnsDetail",kBaseUrl]];
    _sbpd_orderConfirmUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/confirmOrder",kBaseUrl]];
    _sbpd_orderCommitUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/createOrder",kBaseUrl]];
    _sbpd_addGoodsFromOrderToMyCarUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/mycart/multiAdd",kBaseUrl]];
    _sbpd_addCommentTextUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/addcomments",kBaseUrl]];
    _sbpd_returnGoodsTextUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/applyReturn",kBaseUrl]];
    _sbpd_cartListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/mycart/lists",kBaseUrl]];
    _sbpd_carListDeleteUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/mycart/multiReduce",kBaseUrl]];
    _sbpd_carListAddUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/mycart/multiAdd",kBaseUrl]];
    _sbpd_addProductToMyCartUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/mycart/add",kBaseUrl]];
    _sbpd_addProductToMyCollectionUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/favorite/add_product",kBaseUrl]];
    _sbpd_deleteOrderUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/editOrder",kBaseUrl]];
    
#pragma mark - 上传图片baseUrl (投诉/点评)
    _sbpm_addCommentPicUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@uploads/addcommentspic",kBaseUrl]];
    _sbpm_returnGoodsPicUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@uploads/applyReturnPic",kBaseUrl]];
    
    
#pragma mark - 普通操作  :  各推/检测版本
    _gen_versionUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@preload/vcv2",kBaseUrl]];
    
    
#pragma mark - 普通图片上传
    
    
#pragma mark - 个人操作
    _per_userAllAddressInfoUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/getAllAddress",kBaseUrl]];
    _per_deleteUserAddressUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/delAddress",kBaseUrl]];
    _per_addUserAddressUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/addnewaddress",kBaseUrl]];
    _per_modifyUserAddressUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/editAddress",kBaseUrl]];
    _per_loginUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/authlogin",kBaseUrl]];
    _per_submitPhotoNumberUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/checkphone",kBaseUrl]];
    _per_phoneRegsiterUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/phonereg",kBaseUrl]];
    _per_findPWDUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/getpasswordcode",kBaseUrl]];
    _per_submitNewPWDUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/changepassword",kBaseUrl]];
    _per_localLoginUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/login",kBaseUrl]];
    _per_loginOutUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/loginout",kBaseUrl]];
    _per_uploadUserNickNameUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/profile/edit_v2",kBaseUrl]];
    _per_getUserInfoUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/profile/detail_v2",kBaseUrl]];
    _per_getShareInfoUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@news/tie_share",kBaseUrl]];
    _per_favoriteGoodsUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/favorite/get_product",kBaseUrl]];
    _per_checkinUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/profile/checkin",kBaseUrl]];
    _per_upLoadGePushIdUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/member/uploadgetuicid",kBaseUrl]];
    _per_contentTenementUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/myorders/getSelectAddress",kBaseUrl]];
    _per_repairTypeUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@android_oa/app_get_item_by_repair_id",kRuByBaseUrl]];
    _per_submitRepairAskUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@android_oa/app_repair_apply",kRuByBaseUrl]];
    _per_repairListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@android_oa/app_repair_apply_list",kRuByBaseUrl]];
    
    
#pragma mark - 个人上传头像
    _perm_uploadFaceImgUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@uploads/face",kBaseUrl]];
    
#pragma mark - 小区系列
    _my_community = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/myhouse",kBaseUrl]];
    _my_community_list = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/community_list",kBaseUrl]];
    _my_community_grouplist = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/group_list_by_community?cmid=",kBaseUrl]];
    _my_community_buildinglist = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/building_list_by_group?groupid=",kBaseUrl]];
    _my_community_floorlist = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/house_list_by_building?building_id=",kBaseUrl]];
    _my_community_houselist = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/select_house",kBaseUrl]];
    _my_community_delete = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/delete_house",kBaseUrl]];
    _my_apply_house = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/apply_house",kBaseUrl]];
    _my_add_house = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/add_house",kBaseUrl]];
    
    
    
#pragma mark - 上报数据 log_BaseUrl
    _log_feedBackByUserUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@feedback/add",kBaseUrl]];
    _log_logUpDataUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@dataupload/ios_traffic_analysis.php",kBaseUrl]];
    _log_crashLogReportUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@dataupload/ios_collapse.php",kBaseUrl]];
    
#pragma mark - 聊天操作
    _im_chatListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/dynamic/get_contactv2",kBaseUrl]];
    _im_chatContentUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/msg/get_private_msgv3",kBaseUrl]];
    _im_chatSendUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/msg/send_private_msgv3",kBaseUrl]];
    _im_deleteChatListUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/msg/hidePMSGsession",kBaseUrl]];
    _im_chatShopContentUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@mall/products/getMainInfo",kBaseUrl]];
    _im_chatLoseData = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@user/msg/get_private_msg_chunk?pmid=",kBaseUrl]];
    
#pragma mark - 聊天上传图片
    _imm_chatImageUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@uploads/privatemsg",kBaseUrl]];

    
    _deleteMyCommunityUrl = [SNTool removeBlankWithStr:[NSString stringWithFormat:@"%@house/delete_house",kBaseUrl]];
}

@end
